﻿<%@ Page Language="C#" MasterPageFile="~/YUIAspNet.Master" AutoEventWireup="true" CodeBehind="YUIFileManager.aspx.cs" Inherits="YUIAspNetDemo.YUIFileManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>YUIAsp.Net Applications : FileManager</title>
    <script type="text/javascript">
        function NewFile(sender, args)
        {}
        
        function NewFolder(sender, args)
        {}
        
        
        function About(sender, args)
        {
            alert("YUIAsp.Net FileManager demo.\n Copyright 2009 YUIAsp.Net");
        }
    </script>
    <style type="text/css">
        yuimenu .bd {
    
        zoom: normal;    
    }
    </style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>File manager application using YUIAsp.Net Controls</p>
    
    <yui:LayoutManager ID="layout" runat="server" Width="600" Height="600">
        <LayoutUnits>
            <yui:LayoutUnit ID="topUnit" runat="server" Height="25" Width="600" Position="Top" ZIndex="2">
                <ContentTemplate>
                    <yui:Menu ID="fileMenu" runat="server" MenuType="Horizontal" HideDelay="700">
                        <%--<Effect Duration="0.5" Effect="Fade" />--%>
                        <Items>
                            <yui:MenuItem Text="File">
                                <Items>
                                    <yui:MenuItem Text="New ...">
                                        <Items>
                                            <yui:MenuItem Text="File" OnClientClick="NewFile"></yui:MenuItem>
                                            <yui:MenuItem Text="Folder" OnClientClick="NewFolder"></yui:MenuItem>
                                        </Items>
                                    </yui:MenuItem>
                                </Items>
                            </yui:MenuItem>
                            <yui:MenuItem Text="Edit">
                                <Items>
                                    <yui:MenuItem Text="Cut"></yui:MenuItem>
                                    <yui:MenuItem Text="Copy"></yui:MenuItem>
                                    <yui:MenuItem Text="Paste"></yui:MenuItem>
                                </Items>
                            </yui:MenuItem>
                            <yui:MenuItem Text="Help">
                                <Items>
                                    <yui:MenuItem Text="About" OnClientClick="About"></yui:MenuItem>
                                </Items>
                            </yui:MenuItem>
                        </Items>
                    </yui:Menu>
                </ContentTemplate>
            </yui:LayoutUnit>
            <yui:LayoutUnit ID="leftUnit" runat="server" Height="500" Width="200" Resize="true" Collapse="true" Position="Left">
                <ContentTemplate>tree will be here</ContentTemplate>
            </yui:LayoutUnit>
            <yui:LayoutUnit ID="centerUnit" runat="server" Position="Center" Height="550" Width="400">
                <ContentTemplate>file display will be here</ContentTemplate>
            </yui:LayoutUnit>
            <yui:LayoutUnit ID="bottomUnit" runat="server" Position="Bottom" Height="25" Width="600">
                <ContentTemplate>&copy; 2009 YUIAsp.Net</ContentTemplate>
            </yui:LayoutUnit>
        </LayoutUnits>
    </yui:LayoutManager>
</asp:Content>
